home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Visual Basic new SourceCode and Projects / Barcode Generator 2.0 / options.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2000-06-22  |  5.8 KB  |  195 lines

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  3. Begin VB.Form options 
  4.    BorderStyle     =   4  'Festes Werkzeugfenster
  5.    Caption         =   "Options"
  6.    ClientHeight    =   3375
  7.    ClientLeft      =   45
  8.    ClientTop       =   285
  9.    ClientWidth     =   3570
  10.    LinkTopic       =   "Form1"
  11.    LockControls    =   -1  'True
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   3375
  15.    ScaleWidth      =   3570
  16.    ShowInTaskbar   =   0   'False
  17.    StartUpPosition =   3  'Windows-Standard
  18.    Begin MSComDlg.CommonDialog CD 
  19.       Left            =   2280
  20.       Top             =   1440
  21.       _ExtentX        =   847
  22.       _ExtentY        =   847
  23.       _Version        =   393216
  24.       DialogTitle     =   "Open Bitmap"
  25.       Filter          =   "All files(*.*) | *.*"
  26.    End
  27.    Begin VB.CommandButton Command4 
  28.       Caption         =   "Set Background Picture"
  29.       Height          =   735
  30.       Left            =   2040
  31.       TabIndex        =   11
  32.       Top             =   2040
  33.       Width           =   1335
  34.    End
  35.    Begin VB.CommandButton Command3 
  36.       Caption         =   "Create shortcut on the desktop"
  37.       Height          =   495
  38.       Left            =   120
  39.       TabIndex        =   9
  40.       Top             =   2040
  41.       Width           =   1815
  42.    End
  43.    Begin VB.CommandButton Command2 
  44.       Caption         =   "Remove all registry entries and exit the program."
  45.       Height          =   615
  46.       Left            =   120
  47.       TabIndex        =   8
  48.       Top             =   2640
  49.       Width           =   1815
  50.    End
  51.    Begin VB.TextBox Text3 
  52.       Height          =   285
  53.       Left            =   120
  54.       TabIndex        =   5
  55.       Text            =   "Text3"
  56.       Top             =   1080
  57.       Width           =   735
  58.    End
  59.    Begin VB.TextBox Text2 
  60.       Height          =   285
  61.       Left            =   120
  62.       TabIndex        =   4
  63.       Text            =   "Text2"
  64.       Top             =   720
  65.       Width           =   735
  66.    End
  67.    Begin VB.CommandButton Command1 
  68.       Caption         =   "Restore defaults"
  69.       Height          =   375
  70.       Left            =   2040
  71.       TabIndex        =   2
  72.       Top             =   2880
  73.       Width           =   1335
  74.    End
  75.    Begin VB.TextBox Text1 
  76.       Height          =   285
  77.       Left            =   120
  78.       TabIndex        =   1
  79.       Text            =   "1755"
  80.       Top             =   360
  81.       Width           =   735
  82.    End
  83.    Begin VB.Label Label5 
  84.       AutoSize        =   -1  'True
  85.       Caption         =   "Extras:"
  86.       Height          =   195
  87.       Left            =   120
  88.       TabIndex        =   10
  89.       Top             =   1680
  90.       Width           =   480
  91.    End
  92.    Begin VB.Line Line2 
  93.       X1              =   0
  94.       X2              =   3600
  95.       Y1              =   1440
  96.       Y2              =   1440
  97.    End
  98.    Begin VB.Line Line1 
  99.       BorderColor     =   &H00E0E0E0&
  100.       BorderWidth     =   3
  101.       X1              =   0
  102.       X2              =   3600
  103.       Y1              =   1440
  104.       Y2              =   1440
  105.    End
  106.    Begin VB.Label Label4 
  107.       AutoSize        =   -1  'True
  108.       BackStyle       =   0  'Transparent
  109.       Caption         =   "Zentimeter"
  110.       Height          =   195
  111.       Left            =   960
  112.       TabIndex        =   7
  113.       Top             =   1095
  114.       Width           =   750
  115.    End
  116.    Begin VB.Label Label3 
  117.       AutoSize        =   -1  'True
  118.       BackStyle       =   0  'Transparent
  119.       Caption         =   "Zoll"
  120.       Height          =   195
  121.       Left            =   960
  122.       TabIndex        =   6
  123.       Top             =   735
  124.       Width           =   255
  125.    End
  126.    Begin VB.Label Label2 
  127.       AutoSize        =   -1  'True
  128.       BackStyle       =   0  'Transparent
  129.       Caption         =   "Twips"
  130.       Height          =   195
  131.       Left            =   960
  132.       TabIndex        =   3
  133.       Top             =   370
  134.       Width           =   420
  135.    End
  136.    Begin VB.Label Label1 
  137.       AutoSize        =   -1  'True
  138.       BackStyle       =   0  'Transparent
  139.       Caption         =   "Standard form width for EAN codes:"
  140.       Height          =   195
  141.       Left            =   120
  142.       TabIndex        =   0
  143.       Top             =   120
  144.       Width           =   2535
  145.    End
  146. Attribute VB_Name = "options"
  147. Attribute VB_GlobalNameSpace = False
  148. Attribute VB_Creatable = False
  149. Attribute VB_PredeclaredId = True
  150. Attribute VB_Exposed = False
  151. Private Sub Command1_Click()
  152. Text1.text = 1755
  153. End Sub
  154. Private Sub Command2_Click()
  155. TheX = MsgBox("sure?", vbYesNo, "Bar Code Generator")
  156. If TheX = vbYes Then
  157.     DeleteSetting "Bar Code Generator"
  158.     End
  159. End If
  160. End Sub
  161. Private Sub Command3_Click()
  162. ShortCut
  163. End Sub
  164. Private Sub Command4_Click()
  165. On Error Resume Next
  166. CD.ShowOpen
  167. TheX = CD.FileName
  168. If TheX <> "" Then
  169.     Mainfrm.Picture = LoadPicture(TheX)
  170.     SaveSetting "Bar Code Generator", "Settings", "BGPicture", TheX
  171.     Mainfrm.Picture = Nothing
  172.     SaveSetting "Bar Code Generator", "Settings", "BGPicture", TheX
  173. End If
  174. End Sub
  175. Private Sub Form_Load()
  176. Text1.text = GetSetting("Bar Code Generator", "Settings", "Form Width", 1755)
  177. Text2.text = Text1.text / 1440
  178. Text3.text = Text1.text / 567
  179. End Sub
  180. Private Sub Form_Unload(Cancel As Integer)
  181. SaveSetting "Bar Code Generator", "Settings", "Form Width", Text1.text
  182. End Sub
  183. Private Sub Text1_Change()
  184. Text2.text = Text1.text / 1440
  185. Text3.text = Text1.text / 567
  186. End Sub
  187. Private Sub Text2_Change()
  188. Text1.text = Text2.text * 1440
  189. Text3.text = Text1.text / 567
  190. End Sub
  191. Private Sub Text3_Change()
  192. Text1.text = Text3.text * 567
  193. Text2.text = Text1.text / 1440
  194. End Sub
  195.